<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

  <style>
    div{
      width: 200px;
      height: 200px;
      border: 1px solid red;
      /*hidden 超出隐藏
      visible 超出显示(默认)
      scroll 超出滚动*/
    overflow:scroll;
    }
  </style>

</head>
<body>

<div>
  <img src="../mg.png" alt="">
</div>

</body>
</html>